import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import List from '@/pages/List'
import signUp from '@/pages/signUp'
import signIn from '@/pages/signIn'
import MyHeader from '@/components/Header';

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'HelloWorld',
      components:{
        default:HelloWorld,
        myHeader:MyHeader
      }
    },
    {
      path: '/List',
      name: 'HelloWorld1',
      components:{
        default:List,
        myHeader:MyHeader
      }
    },
    {
      path: '/signUp',
      name: 'signUp',
      components: {
        default:signUp,
        myHeader:MyHeader
      }
    },
    {
      path: '/signIn',
      name: 'signIn',
      component: signIn
    }
  ]
})
